package HttpUtils;

import android.content.Context;

import http.HttpBodyBase;

/**
 * Created by Administrator on 2016/2/17.
 * 0，充值接口
 */
public class HttpAcountRequest extends HttpBodyBase {
    public HttpAcountRequest(Context context,int type) {
        super(context);
        switch (type){
            case 0:
                setAction("/index.php/Home/Customers/Recharge");
                break;
        }
    }

    /**
     * 充值
     * @param money
     * @param payment 支付方式
     */
    private void chargeAccount(String money,String payment ){
        params.put("money",money);
        params.put("payment",payment);
    }

    /**
     * 设置自动支付状态
     * @param open   1(开启) 0（关闭）
     * @param id   车牌id
     */
    private void setComputePay(int open, long id){

        params.put("open",open);
        params.put("id",id);
    }
}
